www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\xcomasp\nd_infoback.asp
<% '************************************************************** ' 新动软网站管理系统 ' 官方网站: http://www.aspcpu.com ' 系统作者: 阮丁远(网名:天 下 程 序) ' Copyright 新动软网站管理系统 版权所有 '************************************************************** %> <% '全局考虑,加on error resume next on error resume next dir_set="..\" nodooooooa=0 if have_a1="" then have_a1="1" '*********************************************** '函数名:JoinChar '作 用:向地址中加入 ? 或 & '参 数:strUrl ----网址 '返回值:加了 ? 或 & 的网址 '*********************************************** function JoinChar(strUrl) if strUrl="" then JoinChar="" exit function end if if InStr(strUrl,"?")<len(strUrl) then if InStr(strUrl,"?")>1 then if InStr(strUrl,"&")<len(strUrl) then JoinChar=strUrl & "&" else JoinChar=strUrl end if else JoinChar=strUrl & "?" end if else JoinChar=strUrl end if end function 'Dim Fy_Url,Fy_a,Fy_x,Fy_Cs(),Fy_Cl,Fy_Ts,Fy_Zx '---定义部份 头------ Fy_Cl = 2 '处理方式:1=提示信息,2=转向页面,3=先提示再转向 Fy_Zx = "/Error.Asp" '出错时转向的页面 '---定义部份 尾------ 'ruandingyuan xiugai Fy_Url=Request.ServerVariables("QUERY_STRING") Fy_a=split(Fy_Url,"&") redim Fy_Cs(ubound(Fy_a)) for Fy_x=0 to ubound(Fy_a) Fy_Cs(Fy_x) = left(Fy_a(Fy_x),instr(Fy_a(Fy_x),"=")-1) Next For Fy_x=0 to ubound(Fy_Cs) If Fy_Cs(Fy_x)<>"" Then If Instr(LCase(Request(Fy_Cs(Fy_x))),"'")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"and ")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"and%20")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"select")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"update")<>0 and Instr(LCase(Request(Fy_Cs(Fy_x))),"set")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),"chr")<>0 or Instr(LCase(Request(Fy_Cs(Fy_x))),"delete%20from")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"delete")<>0 and Instr(LCase(Request(Fy_Cs(Fy_x))),"from")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),";")<>0 or (Instr(LCase(Request(Fy_Cs(Fy_x))),"insert")<>0 and Instr(LCase(Request(Fy_Cs(Fy_x))),"into")<>0) or Instr(LCase(Request(Fy_Cs(Fy_x))),"mid")<>0 Or Instr(LCase(Request(Fy_Cs(Fy_x))),"master.")<>0 Then Select Case Fy_Cl Case "1" Response.Write "<Script Language=JavaScript>alert('出现错误!参数 "&Fy_Cs(Fy_x)&" 的值中包含非法字符串!\n\n 请不要在参数中出现:;,and%20,select%20,update%20,insert%20,delete,chr 等非法字符!);window.close();</Script>" Case "2" Response.Write "<Script Language=JavaScript>location.href='"&Fy_Zx&"'</Script>" Case "3" Response.Write "<Script Language=JavaScript>alert('出现错误!参数 "&Fy_Cs(Fy_x)&"的值中包含非法字符串!\n\n 请不要在参数中出现:;,and%20,select%20,update%20,insert%20,delete%20,chr 等非法字符!);location.href='"&Fy_Zx&"';</Script>" End Select nodooooooa=1 Response.End End If End If Next 'post方式的sql注入,则直接禁止站点外部提交post if lcase(Request.Servervariables("REQUEST_METHOD"))="post" then server_v1=Cstr(Request.ServerVariables("HTTP_REFERER")) server_v2=Cstr(Request.ServerVariables("SERVER_NAME")) if mid(server_v1,8,len(server_v2))<>server_v2 then nodooooooa=1 response.write "<br><br><center><table border=1 cellpadding=20 bordercolor=black bgcolor=#EEEEEE width=450>" response.write "<tr><td style='font:9pt Verdana'>" response.write "你提交的路径有误,禁止从站点外部提交数据,请不要乱该参数!" response.write "</td></tr></table></center>" response.end end if end if nd_web_output_folder_b="xndasp" nd_web_output_folder_qiye_b="xcomasp" 'Dim ConnStr if nodooooooa=0 then ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(dir_set&"data\##%20newDdata8-5-2##.mdb") Set newdsoft_conn_obj = Server.CreateObject("ADODB.Connection") newdsoft_conn_obj.open ConnStr If Err Then Err.Clear Set newdsoft_conn_obj = Nothing Response.Write "数据库连接出错,请检查Conn.asp文件中的数据库参数设置。" Response.End End If end if if request("ruandingyuan_do")="getinfox" then response.write "本站使用新"&""&"动"&"软系统制作,"&"系"&"统"&"作"&"者:"&"阮"&""&"丁"&"远,官网:ww"&"w.as"&"pcpu.com" response.end end if J_True = "True" J_False = "False" J_Now = "Now()" '获得现在的时间 end if '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 if is_haved_g_fontaa="" then is_haved_g_fontaa="1" Function getFontMode(str, vColor, vFont,vSize) Dim FontStr, tColor Dim ColorStr, arrColor If IsNull(str) Then getFontMode = "" Exit Function End If getFontMode = str FontStr=str Select Case CInt(vFont) Case 1 FontStr = "<b>" & str & "</b>" Case 2 FontStr = "<em>" & str & "</em>" Case 3 FontStr = "<u>" & str & "</u>" Case 4 FontStr = "<b><em>" & str & "</em></b>" Case 5 FontStr = "<b><u>" & str & "</u></b>" Case 6 FontStr = "<em><u>" & str & "</u></em>" Case 7 FontStr = "<b><em><u>" & str & "</u></em></b>" Case Else FontStr = str End Select getFontMode = FontStr If vColor = "" Then Exit Function 'ColorStr = "," & InitTitleColor 'arrColor = Split(ColorStr, ",") 'If vColor > UBound(arrColor) Then Exit Function 'tColor = Trim(arrColor(vColor)) if vColor ="0" then 'ssscolor="<font style='font-size:"&vSize&" px;'>" 'ssscolor2="</font>" else 'ssscolor="<font color="&vColor&" style='font-size:"&vSize&" px;'>" 'ssscolor2="</font>" ssscolor="<span style='color:"&vColor&";'>" ssscolor2="</span>" end if getFontMode = ssscolor& FontStr & ssscolor2 End Function end if '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 if haved_atype_a="" then haved_atype_a="1" function get_art_type(in1) get_art_type="" if in1="1" then get_art_type="<font color=red>[图文]</font>" if in1="2" then get_art_type="<font color=red>[组图]</font>" if in1="3" then get_art_type="<font color=red>[新闻]</font>" if in1="4" then get_art_type="<font color=red>[推荐]</font>" if in1="5" then get_art_type="<font color=red>[注意]</font>" if in1="6" then get_art_type="<font color=red>[转载]</font>" if in1="7" then get_art_type="<font color=red>[最新]</font>" end function end if '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 function findx_price(grade_id,str) rst2="" if str<>"" then other_params=split(str,"|") for i=0 to ubound(other_params) sss11=split(other_params(i),":") sss11a=sss11(0) sss11b=sss11(1) if cstr(sss11a)=cstr(grade_id) then rst2=sss11b exit for end if next end if if isnumeric(rst2)<>true then rst2="" end if findx_price=rst2 end function '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 Function n_RemoveHTML_mdx(strHTML) n_RemoveHTML_md="" on error resume next strHTML=cstr(strHTML&"") Set objRegExp = New Regexp objRegExp.IgnoreCase = True objRegExp.Global = True '取闭合的<> objRegExp.Pattern = "<.+?>" '进行匹配 Set Matches = objRegExp.Execute(strHTML) ' 遍历匹配集合,并替换掉匹配的项目 For Each Match in Matches strHtml=Replace(strHTML,Match.Value,"") Next n_RemoveHTML_mdx=strHTML Set objRegExp = Nothing End Function '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 function replace_huanhangz(cont) cont=replace(cont,vbcrlf,"$$sx_aspcodex_huanhang$") cont=replace(cont,chr(10),"$$sx_aspcodex_huanhang$") cont= Replace(cont, CHR(13), "$$sx_aspcodex_huanhang$") cont= Replace(cont, CHR(9), "$$sx_aspcodex_huanhang$") cont=replace(cont,"=","$zzdenghaoaspcpu1$") cont=replace(cont,"&","$zzadnnhaoaspcpu1$") cont=replace(cont,"?","$zzwnnehaoaspcpu1$") replace_huanhangz=cont end function '放在这,以免标签循环嵌套导致本函数循环定义而导致asp错误 Function UrlEncoding_x(DataStr) StrReturn = "" For Si = 1 To Len(DataStr) ThisChr = Mid(DataStr, Si, 1) If Abs(Asc(ThisChr)) < &HFF Then StrReturn = StrReturn & ThisChr Else InnerCode = Asc(ThisChr) If InnerCode < 0 Then InnerCode = InnerCode + &H10000 End If Hight8 = (InnerCode And &HFF00) \ &HFF Low8 = InnerCode And &HFF StrReturn = StrReturn & "%" & Hex(Hight8) & "%" & Hex(Low8) End If Next UrlEncoding_x = StrReturn End Function %><% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <% if have_added_funb="" then have_added_funb=1 isnnn=0 function isnnum(num1) If isnumeric(num1) = 0 Or IsNull(num1) or num1 = "" Then isnnn=0 else isnnn=1 end if end function function isddat(n1) If n1 = "" Or IsNull(n1) or IsDate(n1)=false Then isnnn=0 else isnnn=1 end if end function function isyn(n1) isnnn=9999 If n1 = true or n1=1 Then isnnn=1 end if If n1 = false or n1=0 Then isnnn=0 end if end function function get_rs_value(num1) execute("rsaaaaaaa1="&rsxxx1112&"("&num1&")") get_rs_value=rsaaaaaaa1 end function Function nohtml(ByVal str) Set regEx = New RegExp If IsNull(str) Or Trim(str) = "" Then nohtml = "" Exit Function End If regEx.Pattern = "(\<.[^\<]*\>)" str = regEx.Replace(str, "") regEx.Pattern = "(\<\/[^\<]*\>)" str = regEx.Replace(str, "") regEx.Pattern = "\[NextPage(.*?)\]" '解决“当在文章模块的频道中发布的是图片并使用分页标签[NextPage]或内容开始的前几行就使用分页标签时,一旦使用搜索来搜索该文时,搜索页就会显示分页标签”的问题 str = regEx.Replace(str, "") str = Replace(str, "'", "") str = Replace(str, Chr(34), "") str = Replace(str, vbCrLf, "") str = Trim(str) nohtml = str End Function Public Function ReplaceBadChar(strChar) If strChar = "" Or IsNull(strChar) Then ReplaceBadChar = "" Exit Function End If 'Dim strBadChar, arrBadChar, tempChar, i strBadChar = "',%,^,&,?,(,),<,>,[,],{,},/,\,;,:,exists,select,update,insert,=," & Chr(34) & "," & Chr(0) & "" arrBadChar = Split(strBadChar, ",") tempChar = strChar For i = 0 To UBound(arrBadChar) tempChar = Replace(tempChar, arrBadChar(i), "") Next ReplaceBadChar = tempChar End Function Function GetSubStr(ByVal str, ByVal strlen, bShowPoint) If str = "" Then GetSubStr = "" Exit Function End If 'Dim l, t, c, i, strTemp str = Replace(Replace(Replace(Replace(str, " ", " "), """, Chr(34)), ">", ">"), "<", "<") l = Len(str) t = 0 strTemp = str If strlen = "" Then strlen = 0 Else strlen = CLng(strlen) End If For i = 1 To l c = Abs(Asc(Mid(str, i, 1))) If c > 255 Then t = t + 2 Else t = t + 1 End If If t >= strlen Then strTemp = Left(str, i) Exit For End If Next If strTemp <> str And bShowPoint = True Then strTemp = strTemp & "…" End If GetSubStr = Replace(Replace(Replace(Replace(strTemp, " ", " "), Chr(34), """), ">", ">"), "<", "<") End Function ComeUrl = Trim(Request.ServerVariables("HTTP_REFERER")) Action = Trim(Request("Action")) FoundErr = False ErrMsg = "" If Right(InstallDir, 1) <> "/" Then strInstallDir = InstallDir & "/" Else strInstallDir = InstallDir End If Site_Sn = Replace(Replace(LCase(Request.ServerVariables("SERVER_NAME") & InstallDir), "/", ""), ".", "") '************************************************* '函数名:gotTopic '作 用:截字符串,汉字一个算两个字符,英文算一个字符 '参 数:str ----原字符串 ' strlen ----截取长度 '返回值:截取后的字符串 '************************************************* function gotTopic(str,strlen) if isnull(str) or str="" then gotTopic="" exit function end if 'dim l,t,c, i str=replace(replace(replace(replace(str," "," "),""",chr(34)),">",">"),"<","<") l=len(str) t=0 for i=1 to l c=Abs(Asc(Mid(str,i,1))) if c>255 then t=t+2 else t=t+1 end if if t>=strlen then gotTopic=left(str,i) & "…" exit for else gotTopic=str end if next gotTopic=replace(replace(replace(replace(gotTopic," "," "),chr(34),"""),">",">"),"<","<") end function '************************************************** '函数名:strLength '作 用:求字符串长度。汉字算两个字符,英文算一个字符。 '参 数:str ----要求长度的字符串 '返回值:字符串长度 '************************************************** function strLength(str) 'ON ERROR RESUME NEXT 'dim WINNT_CHINESE WINNT_CHINESE = (len("中国")=2) if WINNT_CHINESE then 'dim l,t,c 'dim i l=len(str) t=l for i=1 to l c=asc(mid(str,i,1)) if c<0 then c=c+65536 if c>255 then t=t+1 end if next strLength=t else strLength=len(str) end if if err.number<>0 then err.clear end function end if %> <html> <head> <title><%'complie-link:label-strat[$$get_title($xx_request_asp$id,1,$xx_request_asp$cid,down,$xx_request_asp$cpid,1)] %> <% tttile="" ctypee="down" cide=request("cid") cnide=request("id") ctide=request("cpid") isqy=1 zide=request("zid") if lcase(trim(ctypee))="article" then biaoqqa="[ND_Article_class]" biaoqq="[ND_Article]" biaoqqz="[ND_Article_Special]" end if if lcase(trim(ctypee))="down" then biaoqqa="[ND_down_class]" biaoqq="[ND_down]" biaoqqz="[ND_down_Special]" end if if lcase(trim(ctypee))="picsp" then biaoqqa="[ND_pic_or_sp_class]" biaoqq="[ND_pic_or_sp]" biaoqqz="[ND_pic_or_sp_Special]" end if if lcase(trim(ctypee))="cp" then biaoqqa="[ND_prod_class]" biaoqq="[ND_prod]" biaoqqz="[ND_prod_Special]" end if if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then set rs_kkkk21a=server.createobject("adodb.recordset") sql="select * from "&biaoqq&" where id="&ctide rs_kkkk21a.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21a.eof then tttile=tttile&" -"&rs_kkkk21a("title") end if end if if trim(zide)<>"" and trim(cstr(zide))<>"0" then set rs_kkkk21ax=server.createobject("adodb.recordset") sql="select * from "&biaoqqz&" where id="&zide rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21ax.eof then tttile=tttile&" -"&rs_kkkk21ax("Specialname") end if end if if trim(cide)<>"" and trim(cstr(cide))<>"0" then set rs_kkkk21=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&cide rs_kkkk21.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21.eof then tttile=tttile&" -"&rs_kkkk21("classname") fffidx=split(rs_kkkk21("parent_id_list"),",") for iinn=ubound(fffidx) to 0 step -1 ssixc=clng(fffidx(iinn)) if ssixc<>0 then set rs_kkkk21b=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&ssixc rs_kkkk21b.open sql,newdsoft_conn_obj,1,1 tttile=tttile&" -"&rs_kkkk21b("classname") rs_kkkk21b.close set rs_kkkk21b=nothing end if next end if end if if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&" -"&rs_kkkk211("name") end if end if biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) tttile=tttile&" -"&wwwname end if ttypw=cstr(1) if ttypw="1" then response.write tttile if ttypw="2" then response.write tttile&","&wwwkeywords if ttypw="3" then response.write tttile %><%'complie-link:label-end[$$get_title($xx_request_asp$id,1,$xx_request_asp$cid,down,$xx_request_asp$cpid,1)] %></title> <meta name="keywords" content="<%'complie-link:label-strat[$$get_title($xx_request_asp$id,2,$xx_request_asp$cid,down,$xx_request_asp$cpid,1)] %> <% tttile="" ctypee="down" cide=request("cid") cnide=request("id") ctide=request("cpid") isqy=1 zide=request("zid") if lcase(trim(ctypee))="article" then biaoqqa="[ND_Article_class]" biaoqq="[ND_Article]" biaoqqz="[ND_Article_Special]" end if if lcase(trim(ctypee))="down" then biaoqqa="[ND_down_class]" biaoqq="[ND_down]" biaoqqz="[ND_down_Special]" end if if lcase(trim(ctypee))="picsp" then biaoqqa="[ND_pic_or_sp_class]" biaoqq="[ND_pic_or_sp]" biaoqqz="[ND_pic_or_sp_Special]" end if if lcase(trim(ctypee))="cp" then biaoqqa="[ND_prod_class]" biaoqq="[ND_prod]" biaoqqz="[ND_prod_Special]" end if if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then set rs_kkkk21a=server.createobject("adodb.recordset") sql="select * from "&biaoqq&" where id="&ctide rs_kkkk21a.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21a.eof then tttile=tttile&" -"&rs_kkkk21a("title") end if end if if trim(zide)<>"" and trim(cstr(zide))<>"0" then set rs_kkkk21ax=server.createobject("adodb.recordset") sql="select * from "&biaoqqz&" where id="&zide rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21ax.eof then tttile=tttile&" -"&rs_kkkk21ax("Specialname") end if end if if trim(cide)<>"" and trim(cstr(cide))<>"0" then set rs_kkkk21=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&cide rs_kkkk21.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21.eof then tttile=tttile&" -"&rs_kkkk21("classname") fffidx=split(rs_kkkk21("parent_id_list"),",") for iinn=ubound(fffidx) to 0 step -1 ssixc=clng(fffidx(iinn)) if ssixc<>0 then set rs_kkkk21b=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&ssixc rs_kkkk21b.open sql,newdsoft_conn_obj,1,1 tttile=tttile&" -"&rs_kkkk21b("classname") rs_kkkk21b.close set rs_kkkk21b=nothing end if next end if end if if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&" -"&rs_kkkk211("name") end if end if biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) tttile=tttile&" -"&wwwname end if ttypw=cstr(2) if ttypw="1" then response.write tttile if ttypw="2" then response.write tttile&","&wwwkeywords if ttypw="3" then response.write tttile %><%'complie-link:label-end[$$get_title($xx_request_asp$id,2,$xx_request_asp$cid,down,$xx_request_asp$cpid,1)] %>" /> <meta name="description" content="<%'complie-link:label-strat[$$get_title($xx_request_asp$id,3,$xx_request_asp$cid,down,$xx_request_asp$cpid,1)] %> <% tttile="" ctypee="down" cide=request("cid") cnide=request("id") ctide=request("cpid") isqy=1 zide=request("zid") if lcase(trim(ctypee))="article" then biaoqqa="[ND_Article_class]" biaoqq="[ND_Article]" biaoqqz="[ND_Article_Special]" end if if lcase(trim(ctypee))="down" then biaoqqa="[ND_down_class]" biaoqq="[ND_down]" biaoqqz="[ND_down_Special]" end if if lcase(trim(ctypee))="picsp" then biaoqqa="[ND_pic_or_sp_class]" biaoqq="[ND_pic_or_sp]" biaoqqz="[ND_pic_or_sp_Special]" end if if lcase(trim(ctypee))="cp" then biaoqqa="[ND_prod_class]" biaoqq="[ND_prod]" biaoqqz="[ND_prod_Special]" end if if trim(ctide)<>"" and trim(cstr(ctide))<>"0" then set rs_kkkk21a=server.createobject("adodb.recordset") sql="select * from "&biaoqq&" where id="&ctide rs_kkkk21a.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21a.eof then tttile=tttile&" -"&rs_kkkk21a("title") end if end if if trim(zide)<>"" and trim(cstr(zide))<>"0" then set rs_kkkk21ax=server.createobject("adodb.recordset") sql="select * from "&biaoqqz&" where id="&zide rs_kkkk21ax.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21ax.eof then tttile=tttile&" -"&rs_kkkk21ax("Specialname") end if end if if trim(cide)<>"" and trim(cstr(cide))<>"0" then set rs_kkkk21=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&cide rs_kkkk21.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk21.eof then tttile=tttile&" -"&rs_kkkk21("classname") fffidx=split(rs_kkkk21("parent_id_list"),",") for iinn=ubound(fffidx) to 0 step -1 ssixc=clng(fffidx(iinn)) if ssixc<>0 then set rs_kkkk21b=server.createobject("adodb.recordset") sql="select * from "&biaoqqa&" where id="&ssixc rs_kkkk21b.open sql,newdsoft_conn_obj,1,1 tttile=tttile&" -"&rs_kkkk21b("classname") rs_kkkk21b.close set rs_kkkk21b=nothing end if next end if end if if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&" -"&rs_kkkk211("name") end if end if biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) tttile=tttile&" -"&wwwname end if ttypw=cstr(3) if ttypw="1" then response.write tttile if ttypw="2" then response.write tttile&","&wwwkeywords if ttypw="3" then response.write tttile %><%'complie-link:label-end[$$get_title($xx_request_asp$id,3,$xx_request_asp$cid,down,$xx_request_asp$cpid,1)] %>" /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="css/ndd.css" rel="stylesheet" type="text/css"></head> <body><%'complie-link:label-strat[$$nd_qiyez_css()] %><!--nd_complie_linkx_start:[$$nd_qiyez_css()]xx--> <div><style type="text/css"> #globalNavArea { position:relative; width:auto; color:#4096b2; background:url(img/hd_nav_darkSel.gif) repeat-x; clear: both; float: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } #globalNavUL {margin:0px 0px 0px 0px;;padding:0;height:25px;width:100%;background:url(img/hd_nav_unsel.gif) repeat-x;} #globalNavUL li{line-height:14px;z-index:40000;margin:0 0 -1px;padding:0;float:left;position:relative;list-style-type:none;list-style-image:none;list-style-position:outside;} /*#globalNavUL li a{font-weight:bold;color:#3d5b81;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sep.gif) no-repeat right 0;} #globalNavUL li a:hover{font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} */ #aaabb {line-height:14px;z-index:40000;margin:0px;padding:0;float:left;position:relative;list-style-type:none;list-style-image:none;list-style-position:outside;} #aaabb a{font-weight:bold;color:#3d5b81;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sep.gif) no-repeat right 0;} #aaabb a:hover{font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} #globalNavUL .navdark2 {font-weight:bold;display:block;padding:8px 18px 8px 18px;color:#4096b2;background:url(img/hd_nav_darkSel.gif) repeat-x;} #globalNavUL .navdark {color:#4096b2;background:url(hd_nav_darkSel.gif) repeat-x;} #globalNavUL li.navdark a{font-weight:bold;color:#3d5b81;display:block;padding:8px 14px 7px 13px;text-decoration:none;background:url(img/hd_nav_darkSel.gif) no-repeat right 0;} #globalNavUL li.navdark a:hover{font-weight:bold;color:#fff;display:block;padding:7px 14px 7px 13px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} #globalNavUL .selmenulinks {font-weight:bold;color:#fff;display:block;padding:8px 15px 7px 14px;text-decoration:none;background:url(img/hd_nav_sel.gif) no-repeat right 0;} #globalNavmid {clear:both;background:#37aac9 url(hd_sub_bg2.gif) repeat-x;height:26px;border-top:0px solid #33a1be;margin:0 auto;} #globalNavbot {clear:both;background:#d8e7ee url(img/nav_bot.gif) repeat-x;height:6px;border-bottom:1px solid #fff;margin:0 auto;font-size:1px;line-height:0px;} #midbanner, #midbanner a, #midbanner img {line-height:1px;margin:0;padding:0;border:0;} #midbanner {overflow:hidden;} #pageMain, .maincol, .globalMain {position:relative;margin:0px 5px 0px 6px;width:970px;background:#fff;overflow:hidden;} .globalBody {position:relative;margin:0px 5px 0px 6px;width:970px;background:#fff;overflow:hidden;} .mastheadLinks { width: 150px; } .mastheadLinks ul li { text-align: left; line-height: 50%; list-style-type: none; padding-top: 0px; padding-right: 0; padding-bottom: 0px; padding-left: 2px; margin-top: 5px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; }</style></div><!--nd_complie_linkx_end:[$$nd_qiyez_css()]xx--><%'complie-link:label-end[$$nd_qiyez_css()] %> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="200" height="3" align="center" valign="bottom" bgcolor="CC0000"></td> <td width="734" height="3" align="center" valign="bottom" bgcolor="555F67"></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0" background="img/bzbg.jpg"> <tr> <td width="241" height="81" align="center"><%'complie-link:label-strat[$$nd_logo()] %><!--nd_complie_linkx_start:[$$nd_logo()]xx--> <div><img height="60" alt="" hspace="4" width="130" vspace="2" border="0" src="img/logo.gif" /></div><!--nd_complie_linkx_end:[$$nd_logo()]xx--><%'complie-link:label-end[$$nd_logo()] %></td> <td width="762" height="81" align="center"><table width="90%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right"><img src="img/t1.jpg" width="11" height="10" hspace="3"><font color="999999"> <a href="index.asp">返回首页</a> </font> <img src="img/t3.jpg" width="9" height="10" hspace="3"> <font color="999999"><a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://');" href="#">设为首页</a> </font></td> </tr> </table></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="34" align="center" valign="middle" background="img/hd_nav_darkSel.gif"><%'complie-link:label-strat[$$nd_menu1a(1,12)] %><!--nd_complie_linkx_start:[$$nd_menu1a(1,12)]xx--> <% '************************************************************** ' 新 动 软 网 站 管 理系统 ' 系统作者: 阮 丁 远(网名:天 下 程 序) ' Copyright (C) 新 动 软 网站 管 理 系 统 版 权 所有 '************************************************************** %> <%if havecssa_addedddxz="" then havecssa_addedddxz="1" %> <%end if%> <table style="margin: 0px" cellspacing="0" cellpadding="0" width="100%" border="0"> <%'complie-link:label-strat[$$include_get_font_str()] %><!--nd_complie_linkx_start:[$$include_get_font_str()]xx--> <% '本函数已放在adminKernel/cmplie_conn.....那个文件里,以免标签循环嵌套导致本函数循环定义而导致asp错误,但不能删本标签 %><!--nd_complie_linkx_end:[$$include_get_font_str()]xx--><%'complie-link:label-end[$$include_get_font_str()] %><% CurrentPage765125159=replacebadchar(request("page765125159")) if CurrentPage765125159="" then CurrentPage765125159=1 else if not IsNumeric(CurrentPage765125159) then CurrentPage765125159=1 else if int(CurrentPage765125159)<=0 then CurrentPage765125159=1 else CurrentPage765125159=replaceBadchar(request("page765125159")) end if end if end if yyyy1=12 sql="select [ND_channel].id,[ND_channel].lanmu_type,[ND_channel].sys_content_type_name,[ND_channel].is_hidden,[ND_channel].name,[ND_channel].is_link_class,[ND_channel].is_open_use_blank,[ND_channel].orders,[ND_channel].outlink,[ND_channel].titleColor,[ND_channel].titleFont,[ND_channel].channel_file_url,[ND_channel].dyn_channel_file_url,[ND_channel].channel_pic,[ND_channel].is_qiye from [ND_channel] where [ND_channel].is_qiye=1 and is_hidden='0' order by clng(orders) asc" %> <% maxperpage765125159=9999 xxxx1=clng(9999/yyyy1) if (9999 mod yyyy1)<>0 then xxxx1=xxxx1+1 end if '获取自身文件名 aryxx =split(Request.ServerVariables("SCRIPT_NAME"),"/") fileNamexx = aryxx(ubound(aryxx)) strFileName=fileNamexx set rs_x1=server.CreateObject("adodb.recordset") rs_x1.open sql,newdsoft_conn_obj,1,1 if not rs_x1.eof then rs_x1.pagesize=MaxPerpage765125159 totalnumber765125159=rs_x1.recordcount if totalnumber765125159 mod maxperpage765125159=0 then MaxPage= totalnumber765125159 \ MaxPerpage765125159 else MaxPage= totalnumber765125159 \ MaxPerpage765125159+1 end if if int(CurrentPage765125159)>int(MaxPage) then CurrentPage765125159=MaxPage else CurrentPage765125159=CurrentPage765125159 end if rs_x1.absolutepage=CurrentPage765125159 for ni765125159=1 to xxxx1 if rs_x1.eof then exit for %><%%> <tr> <td colspan="2" height="10" align="center"> <div id="globalNavArea"> <ul id="globalNavUL"><%for bj765125159=1 to yyyy1 if rs_x1.eof then exit for %><% if rs_x1("is_link_class")="1" then aurl=rs_x1("outlink") else aurl=rs_x1("dyn_channel_file_url") end if if rs_x1("is_open_use_blank")="1" then sopbln="_blank" else sopbln="_self" end if %> <% '获取字体的html nd_ret_font=getFontMode(rs_x1("name"),rs_x1("titleColor"),rs_x1("titleFont"),13) %> <% nd_ret_font=nd_ret_font %><% %> <li class="navdark"> <div id="aaabb"><a target="<%=sopbln%>" href="<%=aurl%>"><%=nd_ret_font%></a></div></li><% rs_x1.movenext next %> </ul> </div> </td> </tr><%next %> <% else %> <%=nd_sys_nocontent_msg_x_b%><%nd_sys_nocontent_msg_x_b=""%> <%end if %> <%if 0=1 then %> <tr> <td colspan="7" align="center" height="27" > <% call showpage765125159(strFileName,totalnumber765125159,MaxPerPage765125159,true,true,"个",CurrentPage765125159) %> </td> </tr> <%end if %></table><!--nd_complie_linkx_end:[$$nd_menu1a(1,12)]xx--><%'complie-link:label-end[$$nd_menu1a(1,12)] %></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="999" height="246" hspace="0" vspace="0" align="middle"> <param name="movie" value="swf/topbn.swf"> <param name="quality" value="high"><param name="SCALE" value="exactfit"> <embed src="swf/topbn.swf" width="999" height="246" hspace="0" vspace="0" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit"></embed> </object></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="2" align="left" valign="top" bgcolor="DDDDDD"></td> </tr> </table> <table width="1003" border="0" align="center" cellpadding="0" cellspacing="0"> <tr align="center" valign="top"> <td width="196" height="547"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="5"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="180" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd"> <tr> <td height="28" background="img/menubg.jpg"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="61%" align="center"><strong><font color="000000">产品搜索</font></strong> </td> <td width="39%" class="eng">Search</td> </tr> </table></td> </tr> <tr> <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="80" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <form action="nd_do_prod_search.asp" method="get"> <tr> <td height="5"></td> </tr> <tr> <td height="28" align="right"><input name="data" class="textbox" id="data" style="BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #c0c0c0; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #c0c0c0; PADDING-BOTTOM: 1px; CURSOR: hand; COLOR: #666666; BORDER-TOP-COLOR: #c0c0c0; PADDING-TOP: 1px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; HEIGHT: 20px; BACKGROUND-COLOR: #f7f7f7; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #c0c0c0 " value="请输入产品关键字..." size="18" maxlength="64" /></td> </tr> <tr> <td height="28" align="right"> <input name="imageField322" type="image" src="img/sear.gif" width="80" height="21" border="0" /></td> </tr></form> </table> </td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="180" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd"> <tr> <td height="28" background="img/menubg.jpg"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="61%" align="center"><strong><font color="000000">产品导航</font></strong> </td> <td width="39%" class="eng">Prolist</td> </tr> </table></td> </tr> <tr> <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="120" align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"><%'complie-link:label-strat[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)] %><!--nd_complie_linkx_start:[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)]xx--> <% '如果第一级分类有子分类,点第一级分类时是否先不进入其分类链接,而先展开子分类 ishiddenfirstaa="0" '展开第二级子分类时,展开全部(如3,4,5级),还是只是第二级分类 iskkallaa=cstr(0) biao="[ND_prod_class]" biaog="[ND_userGroup]" biaosp="[ND_prod_Special]" biao2="[ND_prod]" sys_content_type="cp_id36" current_root_id=0 back_call_set_in_which_deepth=-123 function next_cen8839358698(pid_list,deepth) set rs=server.CreateObject("adodb.recordset") pppcid="-123" if pid_list<>"" then ppplista=split(pid_list,",") ppplistaubd=ubound(ppplista)-1 pppcid=ppplista(ppplistaubd) end if rs.open "select * from "&biao&" where ((deepth="&deepth&" and ((parent_id_list like '%"&pid_list&"%') or (parent_id='"&pppcid&"'))) and sys_content_type='"&sys_content_type&"') order by clng(orders) asc",newdsoft_conn_obj,1,1 if pid_list<>"" then lista=split(pid_list,",") numa=ubound(lista) p_id=cstr(lista(numa)) else p_id=0 end if i_stp=0 do while not rs.eof if deepth=0 then current_root_id=rs("id") if deepth=0 then back_call_set_in_which_deepth=-123 pid_list222=rs("parent_id_list")&","&rs("id")&"," deepth222=rs("deepth")+1 set rs2=server.CreateObject("adodb.recordset") rs2.open "select * from "&biao&" where ((deepth="&deepth222&" and ((parent_id_list like '%"&pid_list222&"%') or (parent_id='"&rs("id")&"'))) and sys_content_type='"&sys_content_type&"') order by clng(orders) asc",newdsoft_conn_obj,1,1 if deepth=0 then styleaa="display:inline" else styleaa="display:none" end if if cstr(rs("id"))=cstr(request("cid")) then styleaa="display:inline" back_call_set_in_which_deepth=deepth end if idddddd="_"¤t_root_id&"_"&deepth&"_"&i_stp if rs2.eof then if pid_list<>"" then lista=split(pid_list,",") numa=ubound(lista) p_id=cstr(lista(numa-1)) else p_id=0 end if if p_id=0 then p_id=-1 sedesdsz="&id="&sys_content_type if rs("is_link_class")="1" then suuurl=rs("outlink") else suuurl="nd_prod_list.asp?cid="&rs("id")&sedesdsz end if if rs("is_open_use_blank")="1" then ssss1="_blank" else ssss1="_self" end if hrfffffffa=suuurl response.write "<script language=javascript>"&vbcrlf response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf response.write "if (digui==1){"&vbcrlf response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf response.write "else{"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf '递归,展开下一层分类 response.write "if (nnnn==1){"&vbcrlf response.write "var aaaaa;"&vbcrlf response.write "var aaaaav=0;"&vbcrlf response.write "var posa;"&vbcrlf response.write "var posb;"&vbcrlf response.write "var rootid;"&vbcrlf response.write "var deepppp;"&vbcrlf response.write "var nummmmm;"&vbcrlf response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf response.write "}"&vbcrlf response.write "rootid=funn.substring(1,posa);"&vbcrlf response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf response.write "var deepi=deepppp+1;"&vbcrlf response.write "var nummi=0;"&vbcrlf response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf response.write "try{"&vbcrlf response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',0,1,\'\')');}"&vbcrlf response.write "catch(e)"&vbcrlf response.write "{"&vbcrlf response.write "if(nummi>22){"&vbcrlf response.write "nummi=9999;break;}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "if(url!=''){self.location=url;}"&vbcrlf response.write "}"&vbcrlf response.write "</script>"&vbcrlf response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"'>" response.write "<a href='"&hrfffffffa&"' target='"&ssss1&"' class=menu>" %><%for iiiii1=2 to cint(deepth222) if iiiii1=cint(deepth222) then response.write "├" %><% else response.write "│" %><% end if next %><%=left(rs("classname"),15)%><% response.write "</a><br>" response.write "</div>" if not rs.eof then rs.movenext 'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类 if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then response.write "<script language=javascript>" response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';" response.write "</script>" end if if rs.eof or rs.bof then 'response.write "</level0>" 'call next_cen_class(pid_list222,deepth222) exit function else need_benji_next=1 end if else 'response.write "<level0 id="""&rs("id")&""" parentTypeID=""" 'if deepth=0 then response.write "-1" else response.write p_id 'response.write """ caption="""&rs("ClassName")&""" PRI=""2"" explain="""&rs("id")&""" >"&vbcrlf %><% sedesdsz="&id="&sys_content_type if deepth=0 then if ishiddenfirstaa<>"1" then hrfffffffa="nd_prod_list.asp?cid="&rs("id")&sedesdsz hrfffffffab=hrfffffffa else hrfffffffa="javascript:" hrfffffffab="" end if else hrfffffffa="nd_prod_list.asp?cid="&rs("id")&sedesdsz hrfffffffab=hrfffffffa end if if iskkallaa<>"1" then iskkallaacc="0" else iskkallaacc="1" end if styleaax=" onclick="&chr(34)&"cpshow_zi_tree"&idddddd&"('"&idddddd&"',1,0,'&"&hrfffffffab&"&')"&chr(34)&" " response.write "<script language=javascript>"&vbcrlf response.write "var stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "function cpshow_zi_tree"&idddddd&"(funn,nnnn,digui,url){"&vbcrlf response.write "if (digui==1){"&vbcrlf response.write "if(stutas_zi_tree_"&idddddd&"==0){"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=1;}"&vbcrlf response.write "else{"&vbcrlf response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='none';"&vbcrlf response.write "stutas_zi_tree_"&idddddd&"=0;"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf '递归,展开下一层分类 response.write "if (nnnn==1){"&vbcrlf response.write "var aaaaa;"&vbcrlf response.write "var aaaaav=0;"&vbcrlf response.write "var posa;"&vbcrlf response.write "var posb;"&vbcrlf response.write "var rootid;"&vbcrlf response.write "var deepppp;"&vbcrlf response.write "var nummmmm;"&vbcrlf response.write "for(var ttt=0;ttt<=funn.length-1;ttt++){"&vbcrlf response.write "aaaaa=funn.substring(ttt,ttt+1);"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==0)){aaaaav=aaaaav+1;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==1)){aaaaav=aaaaav+1;posa=ttt;continue;}"&vbcrlf response.write "if ((aaaaa=='_')&&(aaaaav==2)){aaaaav=aaaaav+1;posb=ttt;}"&vbcrlf response.write "}"&vbcrlf response.write "rootid=funn.substring(1,posa);"&vbcrlf response.write "deepppp=parseInt(funn.substring(posa+1,posb));"&vbcrlf response.write "nummmmm=parseInt(funn.substring(posb+1,funn.length));"&vbcrlf response.write "var deepi=deepppp+1;"&vbcrlf response.write "var nummi=0;"&vbcrlf response.write "for(nummi=0;nummi<=9999;nummi++){"&vbcrlf response.write "try{"&vbcrlf response.write "eval('cpshow_zi_tree_'+rootid+'_'+deepi+'_'+nummi+'(\''+'_'+rootid+'_'+deepi+'_'+nummi+'\',"&iskkallaacc&",1,\'\')');}"&vbcrlf response.write "catch(e)"&vbcrlf response.write "{"&vbcrlf response.write "if(nummi>22){"&vbcrlf response.write "nummi=9999;break;}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "}"&vbcrlf response.write "if(url!=''){self.location=url;}"&vbcrlf response.write "}"&vbcrlf response.write "</script>"&vbcrlf sedesdsz="&id="&request("id") if rs("is_link_class")="1" then suuurl=rs("outlink") else suuurl=hrfffffffa end if if rs("is_open_use_blank")="1" then ssss1="_blank" else ssss1="_self" end if '"&styleaax&" 一定不要放在<div id='cptree....里,不然会因为<div的嵌套而导致循环调用onclick response.write "<div id='cptree"&idddddd&"' style='"&styleaa&"' >" response.write "<a href='"&suuurl&"' "&styleaax&" target='"&ssss1&"' class=menu>" %><%for iiiii1=2 to cint(deepth222) if iiiii1=cint(deepth222) then response.write "├" else response.write "│" end if next %><%=left(rs("classname"),15)%><% response.write "</a><br>" call next_cen8839358698(pid_list222,deepth222) response.write "</div>" 'back_call_set_in_which_deepth+1 加1是为了展开当前分类的下一级分类 if back_call_set_in_which_deepth<>-123 and ( deepth<=back_call_set_in_which_deepth+1 or iskkallaa="1") then response.write "<script language=javascript>" response.write "document.getElementById('"&"cptree"&idddddd&"').style.display='inline';" response.write "</script>" end if if not rs.eof then rs.movenext need_benji_next=1 if rs.eof or rs.bof then 'if deepth<>0 then response.write "</level0>" 'call next_cen_class(pid_list222,deepth222) exit function end if end if if need_benji_next=0 then exit do end if need_benji_next=0 i_stp=i_stp+1 loop end function call next_cen8839358698("",0) %><!--nd_complie_linkx_end:[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)]xx--><%'complie-link:label-end[$$prod_class_tree_z(nd_prod_list.asp,15,"cp_id36",0)] %></td> </tr> </table></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> </td> <td width="1" bgcolor="dddddd"></td> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="96%" border=0 align="center" cellpadding=0 cellspacing=6> <tr valign=bottom> <td width="4%" align="right"><b><img src="img/M.jpg" width="12" height="13" hspace="3"></b></td> <td width="96%"><strong><%'complie-link:label-strat[$$get_lanmu_ming($xx_request_asp$id)] %><!--nd_complie_linkx_start:[$$get_lanmu_ming($xx_request_asp$id)]xx--> <% tttile="" cnide=request("id") if trim(cnide)<>"" and trim(cstr(cnide))<>"0" then set rs_kkkk211=server.createobject("adodb.recordset") sql="select * from ND_channel where sys_content_type_name='"&cnide&"'" rs_kkkk211.open sql,newdsoft_conn_obj,1,1 if not rs_kkkk211.eof then tttile=tttile&rs_kkkk211("name") end if end if response.write tttile %><!--nd_complie_linkx_end:[$$get_lanmu_ming($xx_request_asp$id)]xx--><%'complie-link:label-end[$$get_lanmu_ming($xx_request_asp$id)] %></strong><b>| </b></td> </tr> <tr> <td colspan="2"> <table height=1 cellspacing=0 cellpadding=0 width="100%" border=0> <tr> <td width="20%" bgcolor=#ff0000 height=2></td> <td width="72%" bgcolor=#dddddd height=2></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <br> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC"> <tr> <td align="left" valign="middle" class="gs" style="word-break:break-all"> </td> </tr> <tr> <td height="73" align="center" valign="middle" class="gs"> <%'complie-link:label-strat[$$nd_infoback($xx_request_asp$id,0)] %><!--nd_complie_linkx_start:[$$nd_infoback($xx_request_asp$id,0)]xx--> <% sys_content_type=request("id") if sys_content_type="" then sys_content_type=request("sys_content_type") if sys_content_type="" then sys_content_type="sys_123_root_123x" sussd="" if session("nd_cache_logined_user")<>"" then sussd=session("nd_cache_logined_user") else if request.Cookies("nd_cc_cache_logined_user")<>"" then sussd=request.Cookies("nd_cc_cache_logined_user") end if end if uus_id="no" if sussd<>"" then set rs2c2m1a1=server.CreateObject("adodb.recordset") rs2c2m1a1.open "select * from [ND_user] where [username]='"&sussd&"'",newdsoft_conn_obj,1,1 if not rs2c2m1a1.eof then uus_id=cstr(rs2c2m1a1("id")) end if end if '获取自身文件名 aryxx =split(Request.ServerVariables("SCRIPT_NAME"),"/") fileNamexx = aryxx(ubound(aryxx)) strFileName=fileNamexx set conn=newdsoft_conn_obj function JoinChar(strUrl) if strUrl="" then JoinChar="" exit function end if if InStr(strUrl,"?")<len(strUrl) then if InStr(strUrl,"?")>1 then if InStr(strUrl,"&")<len(strUrl) then JoinChar=strUrl & "&" else JoinChar=strUrl end if else JoinChar=strUrl & "?" end if else JoinChar=strUrl end if end function count=15 '每页留言数 action=request.querystring("action") id=request.querystring("kkid") rid=request.querystring("rid") url=Request.ServerVariables("HTTP_REFERER") if instr(1,url,"sys_content_type=",1)=0 then url=JoinChar(url) url=url&"sys_content_type"&"="&sys_content_type end if jp="! 2秒后返回<a href="&url&">"&url&"</a><meta http-equiv=refresh content=2;URL="&url&">" function nh(fs) if not isnull(fs) then fs=replace(fs,">",">") fs=replace(fs,"<","<") fs=Replace(fs,CHR(32)," ") fs=Replace(fs,CHR(9)," ") fs=Replace(fs,CHR(34),""") fs=Replace(fs,CHR(39),"'") fs=Replace(fs,CHR(13),"") fs=Replace(fs,CHR(10) & CHR(10),"</P><P> ") fs=Replace(fs,CHR(10),"<BR> ") nh=fs end if end function function ck() ck=false end function select case action case "add" name=nh(trim(request.form("username"))) face=nh(request.form("userface")) if face="" then face="../images/touxiang/Image7.gif" qq=nh(request.form("userqq")) email=nh(request.form("useremail")) home=nh(request.form("website")) ip=request.servervariables("remote_addr") if uus_id<>"no" and uus_id<>"" then nameb=name&" ,用户名:"&sussd else nameb=name&" (匿名用户)" end if content=" 反馈标题:"&request("title")&" 反馈者:"&nameb&" <br>反馈者公司名称:"&request("company")&" <br>反馈者电话:"&request("tel")&" <br>反馈者地址:"&request("from")&"<br> 留言内容:"&request("guestcontent") ioioppp=1 If request("ccode") = "" Then ioioppp=0 str= "验证码不能为空!" End If If Trim(Session("CheckCode")) = "" and session("CheckCode_r_nnnn")<>"ccc" and ioioppp=1 Then ioioppp=0 str= "你登录时间过长,请重新返回登录页面进行登录。" End If If request("ccode") <> Session("CheckCode") and session("CheckCode_r_nnnn")<>"ccc" and ioioppp=1 Then ioioppp=0 str= "您输入的验证码和系统产生的不一致,请重新输入。" End If if cstr(0)="1" and sussd="" then ioioppp=0 str="您必须先登陆系统,才能执行本操作。" end if if str<>"" then response.write str response.write "<script language=javascript>alert('"&str&"');history.go(-1);</script>" end if if name="" or request("guestcontent")="" then response.write "姓名和反馈内容必须填写" if ioioppp=1 then response.write"<script language=javascript>alert('姓名和反馈内容必须填写');history.go(-1);</script>" end if else if ioioppp=1 then conn.execute("INSERT INTO [ND_book](sys_content_type,name,content,face,qq,email,home,ip,user_id,tttype) VALUES('"&sys_content_type&"','"&name&"','"&content&"','"&face&"','"&qq&"','"&email&"','"&home&"','"&ip&"','"&uus_id&"','"&"4"&"')") '**************************************************** '参数说明 'Subject : 邮件标题 'Email : 收件人邮件地址 'Content : 邮件内容 'is_for_qiye_mail 企业子系统不? '**************************************************** is_for_qiye_mail=0 Public Function SendMailb(Subject, Email, Content) ' On Error Resume Next SendMailb="not_suputted" biao2="[ND_sys]" if is_for_qiye_mail=1 then biao2="[ND_sys]" set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='config_settings_qiye'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='config_settings'",newdsoft_conn_obj,1,1 end if ddd1tt=rs22t("data") dddd12tt=split(ddd1tt,"|") SiteNamexx=cstr(trim(dddd12tt(2)&" ")) comtype=cstr(dddd12tt(7)) if comtype="0" then SendMailb ="not_suputted" exit function end if LoginName=cstr(trim(dddd12tt(10)&" ")) LoginPass=cstr(trim(dddd12tt(11)&" ")) MailAddress=cstr(trim(dddd12tt(9)&" ")) Fromer=cstr(trim(dddd12tt(8)&" ")) if comtype="1" then Set jmail = Server.CreateObject("JMAIL.Message") '建立发送邮件的对象 jmail.silent = true '屏蔽例外错误,返回FALSE跟TRUE两值j jmail.Charset = "GB2312" '邮件的文字编码为国标 jmail.ContentType = "text/html" '邮件的格式为HTML格式 jmail.AddRecipient Email '邮件收件人的地址 jmail.From = Fromer '发件人的E-MAIL地址 jmail.FromName = SiteNamexx If LoginName <> "" And LoginPass <> "" Then JMail.MailServerUserName = LoginName '您的邮件服务器登录名 JMail.MailServerPassword = LoginPass '登录密码 End If If Err Then SendMailb ="not_suputted" exit function end if jmail.Subject = Subject '邮件的标题 JMail.Body = Content JMail.Priority = 1'邮件的紧急程序,1 为最快,5 为最慢, 3 为默认值 Flagaa=jmail.Send(MailAddress) '执行邮件发送(通过邮件服务器地址) jmail.Close() '关闭对象 Set JMail = Nothing If Flagaa Then SendMailb = "OK" Else SendMailb = "False" End If Exit function end if if comtype="2" then Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = Fromer '邮件地址 objCDOMail.To = Email objCDOMail.Subject = Subject objCDOMail.BodyFormat = 0 objCDOMail.MailFormat = 0 objCDOMail.Body = Content If Err <> 0 Then SendMailb="not_suputted" Else objCDOMail.Send If Err <> 0 Then SendMailb="False" Else SendMailb="OK" End If End If Set objCDOMail = Nothing exit function end if if comtype="3" then Set Mailer=Server.CreateObject("Persits.MailSender") Mailer.Charset = "gb2312" Mailer.IsHTML = True Mailer.username = LoginName '服务器上有效的用户名 Mailer.password = LoginPass '服务器上有效的密码 Mailer.Priority = 1 'Mailer.Host = Mailer.Host =MailAddress Mailer.Port = 25 ' 该项可选.端口25是默认值 Mailer.From = Fromer '邮件地址 Mailer.FromName = SiteNamexx ' 该项可选 Mailer.AddAddress Email,Email Mailer.Subject = Subject Mailer.Body = Content If Err <> 0 Then SendMailb="not_suputted" Else Mailer.Send If Err <> 0 Then SendMailb="False" Else SendMailb="OK" End If End If Set Mailer = Nothing exit function end if if comtype="CDO.Message" then If Not IsObject(cdoConfig) Then sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = Server.CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "smtpserver") = MailAddress '--SMTP 服务器 '.Item(sch & "smtpserverport") = 25 .Item(sch & "sendusing") = 2 .Item(sch & "smtpaccountname") = SiteNamexx .Item(sch & "sendemailaddress") = Fromer .Item(sch & "smtpuserreplyemailaddress") = 25 '.Item(sch & "smtpauthenticate") = cdoBasic .Item(sch & "sendusername") = LoginName .Item(sch & "sendpassword") = LoginPass .update End With If Err<>0 Then SendMailb="False" exit function End If End If Set Obj = Server.CreateObject("CDO.Message") With Obj Set .Configuration = cdoConfig .To = Email .Subject = Subject .TextBody = Content .Send End With Set Obj = Nothing Set cdoConfig = Nothing If Err<>0 Then SendMailb="False" Else SendMailb="OK" End If exit function end if end function '判断EMAIL是否正确 Function IsValidEmail(email) IsValidEmail = true names = Split(email, "@") If UBound(names) <> 1 Then IsValidEmail = false Exit Function End If For Each Name in names If Len(Name) <= 0 Then IsValidEmail = false Exit Function End If For i = 1 To Len(Name) c = LCase(Mid(Name, i, 1)) If InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 And Not IsNumeric(c) Then IsValidEmail = false Exit Function End If Next If Left(Name, 1) = "." Or Right(Name, 1) = "." Then IsValidEmail = false Exit Function End If Next If InStr(names(1), ".") <= 0 Then IsValidEmail = false Exit Function End If i = Len(names(1)) - InStrRev(names(1), ".") If i <> 2 And i <> 3 Then IsValidEmail = false Exit Function End If If InStr(email, "..") > 0 Then IsValidEmail = false End If End Function biao2="[ND_sys]" set rs22=server.CreateObject("adodb.recordset") rs22.open "select top 1 * from "&biao2&" where type='config_settings'",newdsoft_conn_obj,1,1 ddd1=rs22("data") dddd12=split(ddd1,"|") ttemail=cstr(dddd12(8)) if trim(ttemail)<>"" then if IsValidEmail(trim(ttemail))=true then If Request.ServerVariables("SERVER_PORT") = "80" Then GetSiteUrl = "http://" & Request.ServerVariables("server_name") Else GetSiteUrl = "http://" & Request.ServerVariables("server_name") & ":" & Request.ServerVariables("SERVER_PORT") End If weerbnamb = GetSiteUrl Email=trim(ttemail) Subject="有新的用户的在线反馈信息 (来自"&weerbnamb&")" Contenta="有新的用户的在线反馈信息:"&content restss=SendMailb(Subject, Email, Contenta) if restss="not_suputted" then response.write"<script language=javascript>alert('您已成功提交 在线反馈信息 ,\n\n但是未自动发送 反馈信息 到管理员邮箱(原因:服务器不支持邮件发送组件或管理员未在基本设置里指定邮件发送组件');</script>" end if if restss="OK" then response.write"<script language=javascript>alert('您已成功提交 在线反馈信息 ,\n并成功发送 反馈信息 到本站网站管理员邮箱');</script>" end if if restss="False" then response.write"<script language=javascript>alert('您已成功提交 在线反馈信息 ,\n但是发送您的 反馈信息 到网站管理员邮箱时发生错误(原因:发送失败,可能管理员在基本设置里指定的邮件登陆用户名或密码是错误的)');</script>" end if end if end if response.write"<script language=javascript>alert('您已成功提交 在线反馈信息 ,\n现在将转向到首页');self.location='index.asp';</script>" Session("CheckCode")="" response.end end if end if case else %> <form id="form11" action="<%=strFileName%>?action=add<%="&"%>sys_content_type=<%=sys_content_type%>" method="post" name="form11"> <table bordercolor="#6699cc" cellspacing="0" cellpadding="0" width="600" border="0"> <tbody> <tr> <td colspan="2"><input id="txvalue" type="hidden" name="userface" value="../images/touxiang/Image7.gif" /> <input type="hidden" size="12" name="userqq" value="0" /> <table cellspacing="1" cellpadding="0" width="80%" align="center" border="0"> <tbody> <tr align="left"> <td colspan="2" height="30">注意!!凡有 * 请正确填写,以便我们与您联系</td> </tr> <tr> <td align="right" width="142" height="25">反馈主题:</td> <td align="left" width="425" height="25"><input id="title" size="30" name="title" type="text" /> *</td> </tr> <tr> <td align="right" height="25">您的姓名:</td> <td align="left" height="25"><%if sussd="" then%><input size="10" name="username" type="text" /> <%else%><input type="hidden" name="username" value="<%=sussd%>" /> <input readonly="readonly" size="10" name="usernamexx" value="<%=sussd%>" type="text" />(此为您的用户名,您已登陆) <%end if%>*</td> </tr> <tr> <td align="right" height="25">电子邮件:</td> <td align="left" height="25"><input size="40" name="useremail" type="text" /></td> </tr> <tr> <td align="right" height="25">公司:<br /> </td> <td align="left" height="25"><input id="company" size="40" name="company" type="text" /> *</td> </tr> <tr> <td align="right" height="25">电话:<br /> </td> <td align="left" height="25"><input id="tel" size="28" name="tel" type="text" /> *</td> </tr> <tr> <td align="right" height="25">地址:<br /> </td> <td align="left" height="25"><input id="from" size="46" name="from" type="text" /></td> </tr> <tr> <td align="right" height="25">反馈内容:</td> <td align="left" height="25"><%="<textarea id=guestcontent name=guestcontent rows=7 cols=45></textarea>"%>*</td> </tr> <tr align="center"> <td colspan="2" height="40"></td> </tr> </tbody> </table> 验证码: <input id="ccode" size="14" name="ccode" type="text" />  请输入<a onclick="aaaz()" href="javascript:"><img id="aaxa" alt="" border="0" src="../inc/checkcode.asp" /></a> <input type="submit" name="Submit" value="提交!" /> <% '以下这句可以防止重新返回本页后 验证码不刷新而 导致的验证码总为空 而导致的登陆不了 if session("CheckCode")="" then '防止刷新后不行又自动不断刷新,最大重试次数限制为max_r_c_ci max_r_c_ci=0 if session("CheckCode_r_count")="" then session("CheckCode_r_count")=1 else session("CheckCode_r_count")=session("CheckCode_r_count")+1 end if if session("CheckCode_r_count")>=max_r_c_ci then session("CheckCode_r_count")=1 session("CheckCode_r_nnnn")="ccc" response.write "<input type='hidden' name='xxccxxzsax' value='a'>" else %><script language=javascript> window.location.reload(); </script><% end if else session("CheckCode_r_count")=1 end if %></td> </tr> </tbody> </table> </form> <%end select%><!--nd_complie_linkx_end:[$$nd_infoback($xx_request_asp$id,0)]xx--><%'complie-link:label-end[$$nd_infoback($xx_request_asp$id,0)] %></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> </table> </td> </tr> </table> <style type="text/css"> <!-- .style20 {color: #333333} --> </style> <TABLE cellSpacing=0 cellPadding=0 width=1003 align=center background=img/footbg.jpg border=0> <TBODY> <TR> <TD width="137" height=55 rowSpan=2 align=middle class=line20> </TD> <TD class=line20 align=left width=544 rowSpan=2><%'complie-link:label-strat[$$nd_web_foot(1,640)] %><!--nd_complie_linkx_start:[$$nd_web_foot(1,640)]xx--> <div><style type="text/css"> .picsize img {max-height:510px; max-width:510px; width:expression(this.width > 510 && this.height < this.width ? 510: true); height:expression(this.height > 510 ? 510: true);} .fooootoo {width:640 px;word-break:break-all;}</style></div> <% isqy=1 biao2="[ND_sys]" if cstr(isqy)<>"1" then set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings'",newdsoft_conn_obj,1,1 else set rs22t=server.CreateObject("adodb.recordset") rs22t.open "select top 1 * from "&biao2&" where type='webname_settings_qiye'",newdsoft_conn_obj,1,1 end if wwwkeywords="" wwwbuttom="" if not rs22t.eof then sss1a=split(rs22t("data"),"|") wwwname=sss1a(0) wemail=sss1a(1) wwwkeywords=sss1a(2) wwwbuttom=sss1a(3) end if %> <table class="fooootoo" cellspacing="0" cellpadding="0" align="center" border="0"> <tbody> <tr> <td><%=wwwbuttom%> </td> </tr> </tbody> </table><!--nd_complie_linkx_end:[$$nd_web_foot(1,640)]xx--><%'complie-link:label-end[$$nd_web_foot(1,640)] %></TD> <TD class=line20 vAlign=top align=middle width=322 height=4></TD> </TR> <TR> <TD height="80" align=center vAlign=middle class=line20> </TD> </TR> </TBODY> </TABLE> </body> </html>